import request from '@/utils/request'; // 使用统一的 request 模块

/**
 * 获取发帖趋势数据
 */
export async function getQuShi() {
  try {
    const response = await request({
      url: '/statistics/quShi',
      method: 'get'
    });
    console.log(response);
    
    return response;
  } catch (error) {
    console.error('获取发帖趋势失败:', error);
    throw error;
  }
}

export async function getBoardDist() {
 try {
    const response = await request({
      url: '/statistics/getBoardDist',
      method: 'get'
    });
    console.log(response);
    
    return response;
  } catch (error) {
    console.error('获取板块数量失败:', error);
    throw error;
  }
}
export async function getOverview() {
 try {
    const response = await request({
      url: '/statistics/getOverview',
      method: 'get'
    });
    console.log(response);
    
    return response;
  } catch (error) {
    console.error('获取统计数据失败:', error);
    throw error;
  }
}
